//
//  LotteryResultView.m
//  BCW
//
//  Created by Mac on 16/3/29.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "LotteryResultView.h"

@implementation LotteryResultView{
    UILabel *_textL;
}

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 5, 100, frame.size.height - 10)];
//        label.text = @"开奖结果";
        label.textColor = WhiteColor;
        [self addSubview:label];
//        label.center = self.center;
        label.centerX = self.centerX;
        self.backgroundColor = YellowColor;
        
        _textL = label;
    }
    return self;
}

- (void)setText:(NSString *)text{
    _text = text;
    
    _textL.text = text;
    [_textL sizeToFit];
    _textL.center = CGPointMake(self.centerX, self.height / 2);
    
}
@end
